import psutil
# 列出所有运行的进程

def list_all_processes():

    for proc in psutil.process_iter(['pid', 'name']):

        print(proc.info)


# 查找特定名称的进程

def find_process_by_name(name):

    for proc in psutil.process_iter(['pid', 'name']):

        if proc.info['name'] == name:


            return True